package a.j;

import a.d.w;

import java.awt.*;

class z$3
  implements qb
{
  private static final double a = 15.0D;
  private static final double b = 15.0D;
  private int c;
  private int d;
  private float e;
  private final w val$mouseCoordinates;
  private final z.ab_ this$0;
  
  z$3(z.ab_ paramab_, w paramw)
  {
    this.this$0 = paramab_;
    this.val$mouseCoordinates = paramw;
    this.c = 1;
    this.d = 3;
    this.e = 2.0F;
  }
  
  public void paint(Graphics2D paramGraphics2D)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    Stroke localStroke = paramGraphics2D.getStroke();
    paramGraphics2D.setStroke(new BasicStroke(this.e));
    int i = 0;
    if (i < z.ab_.access$1000(this.this$0).size()) {}
    label294:
    label296:
    label299:
    while (bool2)
    {
      z.j_ localj_ = (z.j_)z.ab_.access$1000(this.this$0).get(i);
      w localw = localj_.a(this.val$mouseCoordinates.a - z.ab_.access$1100(this.this$0).a, this.val$mouseCoordinates.b - z.ab_.access$1100(this.this$0).b);
      double d1 = localw.a();
      double d2 = localw.b();
      double d3 = localj_.c() / 2.0D + 15.0D;
      double d4 = localj_.d() / 2.0D + 15.0D;
      if ((!bool2) && (bool1)) {
        return;
      }
      int j = -this.c;
      do
      {
        do
        {
          if (j > this.c) {
            break label299;
          }
          int k = (int)(d1 + j * d3);
          if (bool1) {
            break;
          }
          int m = -this.c;
          do
          {
            if (m > this.c) {
              break;
            }
            int n = (int)(d2 + m * d4);
            paramGraphics2D.drawLine(k, n - this.d, k, n + this.d);
            paramGraphics2D.drawLine(k - this.d, n, k + this.d, n);
            m++;
            if (bool2) {
              break label296;
            }
            if (bool1) {
              break label294;
            }
          } while (!bool1);
          if (!bool2) {
            j++;
          }
        } while (!bool1);
        i++;
      } while (bool2);
      if (!bool1) {
        break;
      }
    }
    paramGraphics2D.setStroke(localStroke);
  }
  
  public Rectangle getBounds()
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    Object localObject = new Rectangle();
    int i = 0;
    label274:
    do
    {
      if (i >= z.ab_.access$1000(this.this$0).size()) {
        break;
      }
      z.j_ localj_ = (z.j_)z.ab_.access$1000(this.this$0).get(i);
      w localw = localj_.a(this.val$mouseCoordinates.a - z.ab_.access$1100(this.this$0).a, this.val$mouseCoordinates.b - z.ab_.access$1100(this.this$0).b);
      int j = (int)(localw.a() - this.c * localj_.c() / 2.0D - 15.0D);
      int k = (int)(localw.b() - this.c * localj_.d() / 2.0D - 15.0D);
      int m = (int)((this.c + 1) * localj_.c() + 2 * this.d);
      int n = (int)((this.c + 1) * localj_.d() + 2 * this.d);
      Rectangle localRectangle = new Rectangle(j - this.d, k - this.d, m, n);
      localRectangle.grow(this.d, this.d);
      if (bool1) {
        break label283;
      }
      if (!bool2)
      {
        if (((Rectangle)localObject).getWidth() < 0.0D) {
          localObject = localRectangle;
        }
      }
      else
      {
        if (bool2) {
          continue;
        }
        if (!bool1) {
          break label274;
        }
      }
      localObject = ((Rectangle)localObject).union(localRectangle);
      i++;
    } while (!bool1);
    label283:
    return localObject;
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.j.z.3

 * JD-Core Version:    0.7.0.1

 */